from django.urls import path
from df_user import views
from django.conf.urls import url
# from django.conf.urls import handler404, handler500
# from df_user.views import page_not_found, page_error
app_name="goods"
urlpatterns = [
     # url(r"^register$", views.register, name="register"),
    url(r"^register_handle$", views.register_handle, name="register_handle"),
    url(r"^$", views.index, name="index"),
    # url(r"^register$", views.Registerview.as_view(),name="register"),#注册
    path("register/", views.Registerview.as_view(), name='register'),
    path("img_refresh/", views.img_refresh, name='refresh'),
    path("img_check/", views.img_check, name='check'),
    path('send_sms/', views.sms_send, name="send_sms"),
    path('check_sms/', views.check_sms, name="check_sms"),
    url(r"^active/(?P<token>.*)$", views.ActiveView.as_view(), name="active"),# 账户激活
    url(r"^login$", views.loginView.as_view(), name="login"),# 登录
    ]
# handler404 = 'df_user.views.page_not_found'
# handler500 = "df_user.views.page_error"